package com.woniuxy.main.handler;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.main.pojo.Facility;
import com.woniuxy.main.service.FacilityService;

@Controller
@RequestMapping("/facility")
public class FacilityHandler {
	@Autowired
	private FacilityService facilityService;
	
	@RequestMapping("/all")
	@ResponseBody
	public List<Facility> loadFacilityByRoomId(int room_id){
		
		return facilityService.getFacilityByRoomId(room_id);
	}
	

}
